const express = require('express');

let server = express();

// 定义get请求的路由，路径是 /getparams
// 需求：/getparams上面添加2个路由参数占位符，用来获取年龄和名称
// 路由参数路径：'/getparams/:age/:name'  对应的实际请求url:  '/getparams/1000/程咬金'
server.get('/getparams/:age/:name', (req, res) => {

    console.log(req.params);

    res.send(req.params)
})


server.listen(8088, () => {
    console.log(8088);
})